﻿#include "QGScene.h"
#include <QGraphicsSceneMouseEvent>
#include <QLineEdit>
#include <QGraphicsProxyWidget>
#include "BaseItem.h"
//https://gitee.com/falion/qt-draw-region

QGScene::QGScene(QObject *parent) : QGraphicsScene(parent)
{
//https://gitee.com/falion/qt-draw-region
}


void QGScene::UpDateZoom(qreal val)
{
    for (auto Item:this->items())
    {
        //((BaseItem*)Item)->setProperty("ZoomVal", val);
        BaseItem* it = qgraphicsitem_cast<BaseItem*>(Item);
        if (it)
        {
            it->setProperty("ZoomVal", val);
        }
    }    
}

